package com.jf.yytgd.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jf.yytgd.entity.bean.ScienceArticle;
import com.jf.yytgd.entity.dto.like.LikeDTO;
import com.jf.yytgd.entity.dto.like.LikeExistDTO;
import com.jf.yytgd.entity.dto.scienceArticle.ScienceArticleBarDTO;
import com.jf.yytgd.entity.dto.scienceArticle.ScienceArticleFullDTO;

/**
 * Created with IntelliJ IDEA
 * Description: 科普文章服务层接口
 * User:22954
 * Date:2025-01-13
 * Time:13:00
 */
public interface ScienceArticleService extends IService<ScienceArticle> {
    ScienceArticleFullDTO browse(Integer articleId);

    Page<ScienceArticleBarDTO> pageBar(Integer pageNo, Integer pageSize, String title, String order);

    void like(LikeDTO likeDTO);

    boolean isLike(LikeExistDTO likeDTO);
}
